package io.afu.springnativempdemo.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.afu.springnativempdemo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    UserMapper userMapper;

    @PostMapping("/getall")
    public Object getAll(){
        return userMapper.selectList(new QueryWrapper<>());
    }





}
